﻿using System;
using System.Linq;

namespace MusicPlayer
{
    interface IPlayListCommands
    {
        event EventHandler OnAddFiles;

        event EventHandler OnSortFiles;

        event EventHandler OnClear;

        event EventHandler<PlayListOrderArgs> OnOrderChange;

        event EventHandler<CurrentSongArgs> OnCurrentSongChange;
    }

    class PlayListOrderArgs : EventArgs
    {
        public string Order { get; set; }

        public PlayListOrderArgs(string newOrder)
        {
            this.Order = newOrder;
        }
    }

    class CurrentSongArgs : EventArgs
    {
        public int CurrentIndex { get; set; }

        public CurrentSongArgs(int newCurrentIndex)
        {
            this.CurrentIndex = newCurrentIndex;
        }
    }
}
